<div id="calendar" class="wrapper">
	<h3><?php print ucfirst($this->translate('calendar'))?></h3>

	<?php
		$this->year = isset($this->year) ? $this->year : date('Y');
		$this->yearPrev = $this->year - 1;
		$this->yearNext = $this->year + 1;
	?>

	<ul id="calendar_nav">
		<li><a href="<?php print $this->url(array('year' => $this->yearPrev));?>"><?php print $this->yearPrev?></a></li>
		<li><a href="<?php print $this->url(array('year' => $this->year));?>"><?php print $this->year?></a></li>
		<li><a href="<?php print $this->url(array('year' => $this->yearNext));?>"><?php print $this->yearNext?></a></li>
	</ul>

	<ul id="calendar_months">
	<?php foreach($this->months as $month): ?>
	  	<li><?php print $this->calendar($month)->setFromTo($this->fromto);?></li>
	<?php endforeach;?>
	</ul>
</div>